home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / DinkClas8⁄93 / DinkClass Expo93 / DC TextEdit / DTEditWind.h < prev    next >
Encoding:
Text File  |  1992-10-11  |  1.5 KB  |  61 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        DTEditWind.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    © 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11. // This is the class declaration of the DTEditWind subclass of
  12. // DScrollWindow
  13.  
  14. #ifndef __DTEDITWIND__
  15. #define __DTEDITWIND__
  16.  
  17. #include "DScrollWindow.h"
  18.  
  19. class DTEditWind : public DScrollWindow
  20. {
  21. protected:
  22.  
  23.     TEHandle fDocText;
  24.         // a handy refrence to the TEditDocs fText field;
  25.         
  26. public:
  27.  
  28.     DTEditWind(void);
  29.     ~DTEditWind(void);
  30.         // stub con/de structors... here just for style
  31.         
  32.     virtual Boolean Init(DDocument *doc, Boolean hasColorWindows);
  33.     virtual void    Draw(Rect *r);
  34.  
  35.     virtual void HandleKeyDown(EventRecord *theEvent);                    
  36.     virtual void HandleActivateEvt(EventRecord *theEvent);
  37.     virtual void HandleNullEvent(EventRecord *theEvent);
  38.     virtual void HandleOSEvent(EventRecord *theEvent);
  39.                 // Supports the deacivation of the windows highlighted areas
  40.                 // on a context switch.
  41.  
  42.     virtual void    FocusOnContent(void);
  43.         //over ridden to take into account that the TE scrolling
  44.         // is different in that TEScroll needs the qd origen to not
  45.         // change for it to work correctly.
  46.  
  47.     void    SynchScrollBars(void);
  48.         // Make sure that the valus of the mins,maxs, and offestes
  49.         // are right witht the TE world.
  50. protected:
  51.  
  52.     void    ScrollContents(short dh, short dv);
  53.         // TE scroll is requiers this to be over ridden
  54.         
  55.     virtual void    DoContent(EventRecord* theEvent);
  56.     virtual    void    DoGrow(EventRecord *theEvent);
  57.     virtual    void    DoZoom(short partCode);
  58. };// end of class declaration
  59.  
  60.  
  61. #endif __DTEDITWIND__